/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.uc.dao;

import com.xy.biz.uc.domain.po.UserGroupRoleRelPO;

import java.util.Collection;
import java.util.List;

/**
 * 
 * 
 * @author zsp
 * @date 2020-8-20
 */
public interface UserGroupRoleRelDao {
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllUserGroupRoleRel(Collection<UserGroupRoleRelPO> collection);
	
	/**
	 * 删除
	 *
	 * @param userGroupId
	 */
	int deleteUserGroupRoleRelByUserGroupId(Long userGroupId);

	/**
	 * 删除
	 *
	 * @param roleId
	 */
	int deleteUserGroupRoleRelByRoleId(Long roleId);
	
	/**
	 * 查找多条
	 *
	 * @param collection 
	 * @return
	 */
	List<UserGroupRoleRelPO> listUserGroupRoleRelByUserGroupId(Collection<Long> collection);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<UserGroupRoleRelPO> listUserGroupRoleRelByRoleId(Collection<Long> collection);
	
}
